package com.ruoyi.common.service.business;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.pagination.Paging;
import com.ruoyi.common.domain.business.ProductCategory;
import com.ruoyi.common.param.ProductCategoryParam;
import com.ruoyi.common.vo.business.ProductCategoryVo;

import java.util.List;

/**
 * 产品分类Service接口
 *
 * @author Song
 * @date 2024-10-29
 */
public interface ProductCategoryService extends IService<ProductCategory> {

    /**
     * 分页查询产品分类列表
     *
     * @param productCategoryParam 产品分类
     * @return 产品分类集合
     */
    public Paging<ProductCategoryVo> pageProductCategory(ProductCategoryParam productCategoryParam);

    void addCategory(ProductCategory productCategory);

    List<ProductCategoryVo> getList();

    ProductCategoryVo toEdit(Long id);

    void edit(ProductCategory productCategory);

    void removeCategory(Long id);

    List<Tree<Long>> treeList();

}


